public class 员工信息 {
    private int jobnumber;
    private String name;
    private String department;

    public 员工信息() {

    }

    public 员工信息(int jobnumber, String name, String department) {
        this.jobnumber = jobnumber;
        this.name = name;
        this.department = department;
    }

    public String getStaff() {
        String str = "工号:" + jobnumber + ";姓名:" + name + ";部门:" + department;
        return str;
    }
}

class TestStaff {
    public static void main(String[] args) {
        员工信息 s = new 员工信息(123456, "张三", "人事部");
        System.out.println(s.getStaff());

    }
}